<?php
/**
 * Created by JetBrains PhpStorm.
 * User: vander
 * Date: 5/31/13
 * Time: 8:25 PM
 * To change this template use File | Settings | File Templates.
 */

$audioDir = 'MyUploader/server/php/files/';

$audio = glob($audioDir."*."."{wav,WAV,mp3,MP3,aac,AAC,ogg,OGG}", GLOB_BRACE);
echo json_encode($audio);
?>